<%@ page import="org.bjou.UserBaseinfo" %>
<%@ page import="org.bjou.UserGroup" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="pertho">
  <g:set var="entityName" value="${message(code: 'course.label', default: 'UserBaseinfo')}" />
  <title><g:message code="default.noCourseList.label" args="[entityName]" /></title>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="twelve columns">
         <g:form  method="post">
        <!-- 查询条件开始 -->
        <div class="box_c">
          <div class="box_c_heading cf box_actions">
            <p>查询条件</p>
          </div>
          <div class="box_c_content">
           
              <div class="formRow">
               
                教师分组：
                <g:select id="userGroup" name="groupId" from="${org.bjou.UserGroup.list()}" 
                          optionKey="id" optionValue="groupName" 
                          value="${params.groupId}" 
                          class="many-to-one" noSelection="['': '全部']"/>

               <g:actionSubmit class="gh_button save" action="noCourseList" value="查询" />
               <!--
               <g:actionSubmit class="gh_button icon favorite" action="savejob" value="发布招聘信息"/>
                <g:actionSubmit class="gh_button icon favorite" action="savejob" value="分配责任教师"/>
               -->
              </div>
           
          </div>
        </div>
        <!-- 查询条件结束 -->
        <div class="box_c">
          <div class="box_c_heading cf">
            <p><g:message code="default.noCourseList.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">
            <!-- start -->
            <g:if test="${flash.message}">
              <div class="message" role="status">${flash.message}</div>
            </g:if>
            
            <table>
             
              <thead>
                <tr>
              
              <g:sortableColumn property="groupName" title="${message(code: 'UserBaseinfo.groupName.label', default: 'groupName')}" />

              <g:sortableColumn property="currentTerm" title="${message(code: 'UserBaseinfo.currentTerm.label', default: 'currentTerm')}" />

              <g:sortableColumn property="fullname" title="${message(code: 'UserBaseinfo.fullname.label', default: 'majorName')}" />

           
              
              

              </tr>
              </thead>
              <tbody>
              <g:each in="${userBaseinfoInstanceList}" status="i" var="userBaseinfoInstance">
               
                <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
                
                   
                <td>${fieldValue(bean: userBaseinfoInstance, field: "userGroup.groupName")}</td>

                <td>${currentTerm}</td>

                <td><g:link action="show" id="${userBaseinfoInstance.id}">${fieldValue(bean:userBaseinfoInstance, field: "fullname")}</g:link>
</td>

                           

             
                
                 			
              
                </tr>
              </g:each>
              </tbody>
            </table>
            <div class="pagination">
              <g:paginate total="${userBaseinfoInstanceTotal}" params="${params}"/>
            </div>


            <!-- end -->
          </div>
        </div>
        
         </g:form>
      </div>
    </div>
  </div>





</body>
</html>
